import os
from celery import Celery


# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "meiduo_mall.settings")
if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'meiduo_mall.settings'

app = Celery(main="celery_tasks")
app.config_from_object('celery_tasks.config')
#参数是列表
app.autodiscover_tasks(['celery_tasks.sms','celery_tasks.email','celery_tasks.html'])
